
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>应用数据导入视图 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="REDIRECTVIEW.html" />
    
    
    <link rel="prev" href="LOGINVIEW.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="divider"></li>
        
        
    
        <li class="chapter " data-level="2.1" >
            
                <span>
            
                    
                    应用
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="../APPS/LOCALE.html">
            
                <a href="../APPS/LOCALE.html">
            
                    
                    国际化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="../APPS/EXTENDED.html">
            
                <a href="../APPS/EXTENDED.html">
            
                    
                    快速介入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="../APPS/STYLE.html">
            
                <a href="../APPS/STYLE.html">
            
                    
                    样式规划
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="../APPS/NAVG.html">
            
                <a href="../APPS/NAVG.html">
            
                    
                    导航模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="../APPS/TEMP.html">
            
                <a href="../APPS/TEMP.html">
            
                    
                    临时模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="../APPS/Theme.html">
            
                <a href="../APPS/Theme.html">
            
                    
                    应用主题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="../APPS/NAVPARAM.html">
            
                <a href="../APPS/NAVPARAM.html">
            
                    
                    自定义导航参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="../APPS/VIEWMESSAGE.html">
            
                <a href="../APPS/VIEWMESSAGE.html">
            
                    
                    视图消息
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" >
            
                <span>
            
                    
                    视图
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="EDITVIEW.html">
            
                <a href="EDITVIEW.html">
            
                    
                    实体编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="EDITVIEWPAGE.html">
            
                <a href="EDITVIEWPAGE.html">
            
                    
                    实体编辑视图(分页关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="EDITVIEWUPDOWN.html">
            
                <a href="EDITVIEWUPDOWN.html">
            
                    
                    实体编辑视图(上下关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="EDITVIEWABOUT.html">
            
                <a href="EDITVIEWABOUT.html">
            
                    
                    实体编辑视图(左右关系)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="MEDITVIEW.html">
            
                <a href="MEDITVIEW.html">
            
                    
                    实体多表单编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="GRIDVIEW.html">
            
                <a href="GRIDVIEW.html">
            
                    
                    实体表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="GRIDEXPVIEW.html">
            
                <a href="GRIDEXPVIEW.html">
            
                    
                    实体表格导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="TABEXPVIEW.html">
            
                <a href="TABEXPVIEW.html">
            
                    
                    实体分页导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.9" data-path="EntityDataKanbanView.html">
            
                <a href="EntityDataKanbanView.html">
            
                    
                    实体数据看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.10" data-path="LISTVIEW.html">
            
                <a href="LISTVIEW.html">
            
                    
                    实体列表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.11" data-path="LISTEXPVIEW.html">
            
                <a href="LISTEXPVIEW.html">
            
                    
                    实体列表导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.12" data-path="DATAVIEW.html">
            
                <a href="DATAVIEW.html">
            
                    
                    实体数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.13" data-path="OPTIONVIEW.html">
            
                <a href="OPTIONVIEW.html">
            
                    
                    实体选项操作视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.14" data-path="DATAVIEWEXPVIEW.html">
            
                <a href="DATAVIEWEXPVIEW.html">
            
                    
                    实体卡片导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.15" data-path="CALENDARVIEW.html">
            
                <a href="CALENDARVIEW.html">
            
                    
                    实体日历视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.16" data-path="DAREXPVIEW.html">
            
                <a href="DAREXPVIEW.html">
            
                    
                    实体日历导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.17" data-path="TREEVIEW.html">
            
                <a href="TREEVIEW.html">
            
                    
                    实体树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.18" data-path="TREEEXPVIEW.html">
            
                <a href="TREEEXPVIEW.html">
            
                    
                    实体树导航视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.19" data-path="TREEGRIDEXVIEW.html">
            
                <a href="TREEGRIDEXVIEW.html">
            
                    
                    实体树表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.20" data-path="INDEXVIEW.html">
            
                <a href="INDEXVIEW.html">
            
                    
                    应用首页视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.21" data-path="AppKanBanView.html">
            
                <a href="AppKanBanView.html">
            
                    
                    应用看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.22" data-path="ENTITYKANBANVIEW.html">
            
                <a href="ENTITYKANBANVIEW.html">
            
                    
                    实体看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.23" data-path="GANTTVIEW.html">
            
                <a href="GANTTVIEW.html">
            
                    
                    实体甘特图视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.24" data-path="ENTITYCHARTVIEW.html">
            
                <a href="ENTITYCHARTVIEW.html">
            
                    
                    实体图表视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.25" data-path="ENTITYDATASELECTVIEW.html">
            
                <a href="ENTITYDATASELECTVIEW.html">
            
                    
                    实体数据选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.26" data-path="ENTITYSELECTGRIDVIEW.html">
            
                <a href="ENTITYSELECTGRIDVIEW.html">
            
                    
                    实体选择表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.27" data-path="ENTITYSELECTTREEVIEW.html">
            
                <a href="ENTITYSELECTTREEVIEW.html">
            
                    
                    实体选择树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.28" data-path="INDEXPICKUPDATAVIEW.html">
            
                <a href="INDEXPICKUPDATAVIEW.html">
            
                    
                    实体索引关系选择视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.29" data-path="ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                <a href="ENTITYWORKFLOWTABLEEXPVIEW.html">
            
                    
                    实体工作流动态导航表格视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.30" data-path="ENTITYWORKFLOWEDITVIEW.html">
            
                <a href="ENTITYWORKFLOWEDITVIEW.html">
            
                    
                    实体工作流动态编辑视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.31" data-path="LOGINVIEW.html">
            
                <a href="LOGINVIEW.html">
            
                    
                    应用登录视图
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.2.32" data-path="DATAUPLOADVIEW.html">
            
                <a href="DATAUPLOADVIEW.html">
            
                    
                    应用数据导入视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.33" data-path="REDIRECTVIEW.html">
            
                <a href="REDIRECTVIEW.html">
            
                    
                    实体数据重定向视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.34" data-path="CUSTOM.html">
            
                <a href="CUSTOM.html">
            
                    
                    实体自定义视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2.35" data-path="WIZARDVIEW.html">
            
                <a href="WIZARDVIEW.html">
            
                    
                    实体向导视图
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" >
            
                <span>
            
                    
                    部件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="../CTRLS/FORM.html">
            
                <a href="../CTRLS/FORM.html">
            
                    
                    表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="../CTRLS/GRID.html">
            
                <a href="../CTRLS/GRID.html">
            
                    
                    表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="../CTRLS/GRIDEXPBAR.html">
            
                <a href="../CTRLS/GRIDEXPBAR.html">
            
                    
                    表格导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="../CTRLS/SEARCHBAR.html">
            
                <a href="../CTRLS/SEARCHBAR.html">
            
                    
                    搜索栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="../CTRLS/SEARCHFORM.html">
            
                <a href="../CTRLS/SEARCHFORM.html">
            
                    
                    搜索表单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="../CTRLS/DataKanBan.html">
            
                <a href="../CTRLS/DataKanBan.html">
            
                    
                    数据看板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="../CTRLS/PortalComponents.html">
            
                <a href="../CTRLS/PortalComponents.html">
            
                    
                    门户部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="../CTRLS/TABEXPPANEL.html">
            
                <a href="../CTRLS/TABEXPPANEL.html">
            
                    
                    分页导航面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="../CTRLS/TABVIEWPANEL.html">
            
                <a href="../CTRLS/TABVIEWPANEL.html">
            
                    
                    分页视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="../CTRLS/APPMENU.html">
            
                <a href="../CTRLS/APPMENU.html">
            
                    
                    应用菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="../CTRLS/LIST.html">
            
                <a href="../CTRLS/LIST.html">
            
                    
                    列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="../CTRLS/LISTEXPBAR.html">
            
                <a href="../CTRLS/LISTEXPBAR.html">
            
                    
                    列表导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.13" data-path="../CTRLS/PANEL.html">
            
                <a href="../CTRLS/PANEL.html">
            
                    
                    面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.14" data-path="../CTRLS/DATAVIEWCTRL.html">
            
                <a href="../CTRLS/DATAVIEWCTRL.html">
            
                    
                    数据视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.15" data-path="../CTRLS/DATAVIEWEXPBAR.html">
            
                <a href="../CTRLS/DATAVIEWEXPBAR.html">
            
                    
                    卡片视图导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.16" data-path="../CTRLS/DataRelationPage.html">
            
                <a href="../CTRLS/DataRelationPage.html">
            
                    
                    数据关系分页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.17" data-path="../CTRLS/DATARELATIONFIELD.html">
            
                <a href="../CTRLS/DATARELATIONFIELD.html">
            
                    
                    数据关系栏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.18" data-path="../CTRLS/CALENDAR.html">
            
                <a href="../CTRLS/CALENDAR.html">
            
                    
                    日历部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.19" data-path="../CTRLS/CALENDARTIMELINE.html">
            
                <a href="../CTRLS/CALENDARTIMELINE.html">
            
                    
                    日历部件(时间轴)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.20" data-path="../CTRLS/CALENDAREXPBAR.html">
            
                <a href="../CTRLS/CALENDAREXPBAR.html">
            
                    
                    日历导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.21" data-path="../CTRLS/TREEEXPBAR.html">
            
                <a href="../CTRLS/TREEEXPBAR.html">
            
                    
                    树导航
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.22" data-path="../CTRLS/TREEVIEWUNIT.html">
            
                <a href="../CTRLS/TREEVIEWUNIT.html">
            
                    
                    树视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.23" data-path="../CTRLS/TREEGRID.html">
            
                <a href="../CTRLS/TREEGRID.html">
            
                    
                    树表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.24" data-path="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                <a href="../CTRLS/MULTIEDITVIEWPANEL.html">
            
                    
                    多编辑视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.25" data-path="../CTRLS/KANBANVIEWUNIT.html">
            
                <a href="../CTRLS/KANBANVIEWUNIT.html">
            
                    
                    看板视图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.26" data-path="../CTRLS/GANTT.html">
            
                <a href="../CTRLS/GANTT.html">
            
                    
                    甘特图部件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.27" data-path="../CTRLS/DATACHART.html">
            
                <a href="../CTRLS/DATACHART.html">
            
                    
                    数据图表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.28" data-path="../CTRLS/SELECTVIEWPANEL.html">
            
                <a href="../CTRLS/SELECTVIEWPANEL.html">
            
                    
                    选择视图面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.29" data-path="../CTRLS/WIZARDPANEL.html">
            
                <a href="../CTRLS/WIZARDPANEL.html">
            
                    
                    向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.30" data-path="../CTRLS/STATEWIZARDPANEL.html">
            
                <a href="../CTRLS/STATEWIZARDPANEL.html">
            
                    
                    状态向导面板
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.31" data-path="../CTRLS/CONTEXTMENU.html">
            
                <a href="../CTRLS/CONTEXTMENU.html">
            
                    
                    上下文菜单
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3.32" data-path="../CTRLS/TOOLBAR.html">
            
                <a href="../CTRLS/TOOLBAR.html">
            
                    
                    工具栏
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" >
            
                <span>
            
                    
                    编辑器
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="../EDITORS/BASIC.html">
            
                <a href="../EDITORS/BASIC.html">
            
                    
                    基础类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="../EDITORS/SHOW.html">
            
                <a href="../EDITORS/SHOW.html">
            
                    
                    展示类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.3" data-path="../EDITORS/SELECT.html">
            
                <a href="../EDITORS/SELECT.html">
            
                    
                    选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.4" data-path="../EDITORS/TIME.html">
            
                <a href="../EDITORS/TIME.html">
            
                    
                    时间类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.5" data-path="../EDITORS/FILEUPLOADlIST.html">
            
                <a href="../EDITORS/FILEUPLOADlIST.html">
            
                    
                    文件上传类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.6" data-path="../EDITORS/DATASELECT.html">
            
                <a href="../EDITORS/DATASELECT.html">
            
                    
                    数据选择类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4.7" data-path="../EDITORS/AUTOCOMPLETELIST.html">
            
                <a href="../EDITORS/AUTOCOMPLETELIST.html">
            
                    
                    自动填充类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.5" >
            
                <span>
            
                    
                    逻辑
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.5.1" data-path="../LOGIC/APPFUNC.html">
            
                <a href="../LOGIC/APPFUNC.html">
            
                    
                    应用功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.2" data-path="../LOGIC/ACTION.html">
            
                <a href="../LOGIC/ACTION.html">
            
                    
                    界面行为
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5.3" data-path="../LOGIC/VIEWLOGIC.html">
            
                <a href="../LOGIC/VIEWLOGIC.html">
            
                    
                    视图逻辑
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.6" >
            
                <span>
            
                    
                    UI服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.6.1" data-path="../UISERVICE/CTRLSERVICE.html">
            
                <a href="../UISERVICE/CTRLSERVICE.html">
            
                    
                    部件服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.2" data-path="../UISERVICE/UISERVICE.html">
            
                <a href="../UISERVICE/UISERVICE.html">
            
                    
                    界面服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.3" data-path="../UISERVICE/AUTHSERVICE.html">
            
                <a href="../UISERVICE/AUTHSERVICE.html">
            
                    
                    权限服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.4" data-path="../UISERVICE/CODELISTSERVICE.html">
            
                <a href="../UISERVICE/CODELISTSERVICE.html">
            
                    
                    代码表服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.5" data-path="../UISERVICE/COUNTERSERVICE.html">
            
                <a href="../UISERVICE/COUNTERSERVICE.html">
            
                    
                    计数器服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.6" data-path="../UISERVICE/APPUTILSERVICE.html">
            
                <a href="../UISERVICE/APPUTILSERVICE.html">
            
                    
                    应用功能服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6.7" data-path="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                <a href="../UISERVICE/VIEWMESSAGESERVICE.html">
            
                    
                    视图消息服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.7" >
            
                <span>
            
                    
                    数据服务
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.7.1" data-path="../DATASERVICE/DATASERVICE.html">
            
                <a href="../DATASERVICE/DATASERVICE.html">
            
                    
                    数据服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../APPS/PROBLEM.html">
            
                <a href="../APPS/PROBLEM.html">
            
                    
                    常见问题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >应用数据导入视图</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;">&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;</h2>
<p>&#x7528;&#x4E8E;&#x6570;&#x636E;&#x5BFC;&#x5165;&#xFF0C;&#x5C55;&#x793A;&#x7ED3;&#x679C;&#x7684;&#x89C6;&#x56FE;&#x3002;&#x5176;&#x672C;&#x8EAB;&#x4E3A;&#x529F;&#x80FD;&#x578B;&#x89C6;&#x56FE;&#xFF0C;&#x4EE5;&#x7EC4;&#x4EF6;&#x7684;&#x5F62;&#x5F0F;&#x88AB;&#x5F15;&#x7528;&#x3002;</p>
<h2 id="&#x5448;&#x73B0;&#x6548;&#x679C;">&#x5448;&#x73B0;&#x6548;&#x679C;</h2>
<p><img src="images/datauploadview.png" alt="image-20201023112009451"></p>
<h2 id="&#x57FA;&#x672C;&#x7528;&#x6CD5;"><a href="http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7res/tree/master/src/components/app-data-upload" target="_blank">&#x57FA;&#x672C;&#x7528;&#x6CD5;</a></h2>
<h3 id="&#x884C;&#x4E3A;&#x903B;&#x8F91;">&#x884C;&#x4E3A;&#x903B;&#x8F91;</h3>
<p>&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;&#x7531;&#x8868;&#x683C;&#x754C;&#x9762;&#x884C;&#x4E3A;-&#x5BFC;&#x5165;&#x6253;&#x5F00;&#xFF0C;&#x4EE5;&#x6A21;&#x6001;&#x6846;&#x7684;&#x5F62;&#x5F0F;&#x5C55;&#x73B0;&#x3002;&#x4E0B;&#x9762;&#x4E3B;&#x8981;&#x8BB2;&#x89E3;&#x5176;&#x903B;&#x8F91;&#x3002;</p>
<table>
<thead>
<tr>
<th>&#x7F16;&#x53F7;</th>
<th>&#x529F;&#x80FD;</th>
<th>&#x5173;&#x952E;&#x8BCD;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>V330L0001</td>
<td>&#x6570;&#x636E;&#x521D;&#x59CB;&#x5316;</td>
<td>initBasic</td>
<td>&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x53D1;&#x751F;&#x53D8;&#x5316;&#x65F6;&#x66F4;&#x65B0;&#x6570;&#x636E;&#x6A21;&#x578B;&#xFF0C;&#x540C;&#x65F6;&#x83B7;&#x53D6;&#x5BF9;&#x5E94;&#x7684;&#x4EE3;&#x7801;&#x8868;&#x503C;</td>
</tr>
<tr>
<td>V330L0002</td>
<td>&#x4E0B;&#x8F7D;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x677F;</td>
<td>importExcel</td>
<td>&#x6839;&#x636E;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x4E2D;&#x7684;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x578B;&#x751F;&#x6210;Excel&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td>V330L0003</td>
<td>&#x5BFC;&#x5165;Excel&#x6587;&#x4EF6;</td>
<td>importFile</td>
<td>&#x70B9;&#x51FB;&#x9009;&#x53D6;&#x6587;&#x4EF6;&#x6309;&#x94AE;&#x5E76;&#x9009;&#x62E9;&#x76F8;&#x5E94;&#x7684;&#x6587;&#x4EF6;&#x540E;&#x89E6;&#x53D1;&#xFF0C;&#x7528;&#x4E8E;&#x5904;&#x7406;&#x5BFC;&#x5165;&#x7684;&#x6587;&#x4EF6;&#x6570;&#x636E;</td>
</tr>
<tr>
<td>V330L0004</td>
<td>&#x4E0A;&#x4F20;&#x670D;&#x52A1;&#x5668;</td>
<td>uploadServer</td>
<td>&#x5C06;&#x5BFC;&#x5165;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x8F6C;&#x5316;&#x540E;&#x4E0A;&#x4F20;&#x81F3;&#x670D;&#x52A1;&#x5668;&#x4FDD;&#x5B58;</td>
</tr>
<tr>
<td>V330L0005</td>
<td>&#x4E0A;&#x4F20;&#x5B8C;&#x6210;</td>
<td>handleOK</td>
<td>&#x5173;&#x95ED;&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;</td>
</tr>
</tbody>
</table>
<blockquote style="border-color: blue;"><p>&#x6570;&#x636E;&#x521D;&#x59CB;&#x5316;</p></blockquote>

<p>&#x5F53;&#x901A;&#x8FC7;&#x8868;&#x683C;&#x7684;&#x754C;&#x9762;&#x884C;&#x4E3A;-&#x5BFC;&#x5165;&#x6253;&#x5F00;&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;&#x65F6;&#xFF0C;&#x8868;&#x683C;&#x4F1A;&#x5C06;&#x914D;&#x7F6E;&#x7684;&#x5BFC;&#x5165;ID&#x3001;&#x5B9E;&#x4F53;&#x670D;&#x52A1;&#x540D;&#x79F0;&#x3001;&#x5B9E;&#x4F53;&#x903B;&#x8F91;&#x540D;&#x79F0;&#x3001;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x96C6;&#x5C01;&#x88C5;&#x5230;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x578B;&#x4E2D;&#xFF0C;&#x901A;&#x8FC7;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x4F20;&#x9012;&#x7ED9;&#x6A21;&#x6001;&#x7EC4;&#x4EF6;&#x6253;&#x5F00;&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">    /**
     * &#x6570;&#x636E;&#x5BFC;&#x5165;
     *
     * @param {*} data
     * @memberof ${srfclassname(&apos;${ctrl.codeName}&apos;)}Base
     */
     public importExcel(data:any ={}):void{
        //&#x5BFC;&#x5165;excel
        const importDataModel:any ={
        &lt;#if ctrl.getPSDEDataImport?? &amp;&amp; ctrl.getPSDEDataImport()??&gt;
        &lt;#assign dataImport = ctrl.getPSDEDataImport() /&gt;
            importId:&apos;${dataImport.getCodeName()}&apos;,
            serviceName:&apos;${dataImport.getPSAppDataEntity().getCodeName()?lower_case}&apos;,
            appDeLogicName:&apos;${dataImport.getPSAppDataEntity().getLogicName()}&apos;,
            importData:{
            &lt;#if dataImport.getPSDEDataImportItems()??&gt;
            &lt;#list dataImport.getPSDEDataImportItems() as dataImportItem&gt;
            &quot;${dataImportItem.getName()}&quot;:{&lt;#if dataImportItem.getPSCodeList()??&gt;&lt;#assign codelist = dataImportItem.getPSCodeList()/&gt;&quot;codelist&quot;:{&quot;type&quot;:&quot;${codelist.getCodeListType()}&quot;,&quot;tag&quot;:&quot;${codelist.getCodeName()}&quot;,&quot;isnumber&quot;:${codelist.isCodeItemValueNumber()?c}},&lt;/#if&gt;&quot;headername&quot;:&quot;${dataImportItem.getCaption()}&quot;,&quot;isuniqueitem&quot;:${dataImportItem.isUniqueItem()?c},&lt;#if dataImportItem.getPSAppDEField()??&gt;&lt;#assign appDeField = dataImportItem.getPSDEField()/&gt;&quot;name&quot;:&quot;${appDeField.getCodeName()?lower_case}&quot;,&quot;order&quot;:&lt;#if appDeField.getImportOrder()??&gt;${appDeField.getImportOrder()?c}&lt;/#if&gt;&lt;/#if&gt;}&lt;#if dataImportItem_has_next&gt;,&lt;/#if&gt;
            &lt;/#list&gt;
            &lt;/#if&gt;
            }
        &lt;/#if&gt;
        }
        if(Object.keys(importDataModel).length == 0){
            this.$Notice.warning({ &apos;title&apos;: (this.$t(&quot;app.utilview.warning&quot;) as string), &apos;desc&apos;: (this.$t(&quot;app.utilview.info&quot;) as string) });
            return;
        }
        const view:any ={
            viewname: &apos;app-data-upload&apos;,
            title: this.$t(&quot;app.utilview.importview&quot;),
            width: 900,
            height: 700
        }
        let container: Subject&lt;any&gt; = this.$appmodal.openModal(view, JSON.parse(JSON.stringify(this.context)), importDataModel);
        container.subscribe((result: any) =&gt; {
          if(Object.is(result.ret,&apos;OK&apos;)){
            this.refresh(result.datas);
          }
      });
    }
</code></pre>
<p>&#x5F53;&#x5E94;&#x7528;&#x6570;&#x636E;&#x5BFC;&#x5165;&#x89C6;&#x56FE;&#x83B7;&#x53D6;&#x5230;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x65F6;&#xFF0C;&#x4F1A;&#x8FDB;&#x884C;&#x6570;&#x636E;&#x7684;&#x521D;&#x59CB;&#x5316;&#x3002;&#x4E3B;&#x8981;&#x662F;&#x5BF9;&#x6570;&#x636E;&#x96C6;&#x8FDB;&#x884C;&#x6392;&#x5E8F;&#xFF0C;&#x540C;&#x65F6;&#x5C06;&#x5C5E;&#x6027;&#x9879;&#x5B58;&#x653E;&#x5728;map&#x96C6;&#x5408;&#x4E2D;&#xFF0C;&#x5982;&#x679C;&#x8BE5;&#x5C5E;&#x6027;&#x9879;&#x914D;&#x7F6E;&#x6709;&#x4EE3;&#x7801;&#x8868;&#xFF0C;&#x5219;&#x8FD8;&#x4F1A;&#x53BB;&#x83B7;&#x53D6;&#x5BF9;&#x5E94;&#x7684;&#x4EE3;&#x7801;&#x8868;&#x503C;&#x5E76;&#x8FDB;&#x884C;&#x4FDD;&#x5B58;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x521D;&#x59CB;&#x5316;&#x57FA;&#x7840;&#x6570;&#x636E;
     *
     * @memberof AppDataUploadView
     */</span>
    <span class="hljs-keyword">public</span> async initBasic(){
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.viewparams.importId){
            <span class="hljs-keyword">this</span>.importId = <span class="hljs-keyword">this</span>.viewparams.importId;
        }
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.viewparams.importData){
            <span class="hljs-keyword">this</span>.importDataModel = <span class="hljs-built_in">Object</span>.values(<span class="hljs-keyword">this</span>.viewparams.importData);
            <span class="hljs-keyword">this</span>.BubbleSort(<span class="hljs-keyword">this</span>.importDataModel,<span class="hljs-keyword">this</span>.importDataModel.length);
        }
        <span class="hljs-keyword">this</span>.importDataModel.forEach((item:<span class="hljs-built_in">any</span>) =&gt;{
            <span class="hljs-keyword">if</span>(item.isuniqueitem){
                <span class="hljs-keyword">this</span>.importUniqueItem = item.headername;
            }
            <span class="hljs-keyword">this</span>.allFieldMap.set(item.headername,item);
        });
        <span class="hljs-comment">//&#x83B7;&#x53D6;&#x4EE3;&#x7801;&#x8868;&#x503C;</span>
        <span class="hljs-keyword">this</span>.allCodeList = await <span class="hljs-keyword">this</span>.getChartAllCodeList();
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x4E0B;&#x8F7D;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x677F;</p></blockquote>

<p>&#x70B9;&#x51FB;&#x89C6;&#x56FE;&#x4E2D;&#x7684;&#x4E0B;&#x8F7D;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x677F;&#x65F6;&#x89E6;&#x53D1;&#x3002;&#x7528;&#x4E8E;&#x5C06;&#x89C6;&#x56FE;&#x53C2;&#x6570;&#x4E2D;&#x7684;&#x5BFC;&#x5165;&#x6570;&#x636E;&#x6A21;&#x578B;&#x5B57;&#x6BB5;&#x8F6C;&#x6362;&#x4E3A;&#x7A7A;&#x7684;Excel&#x8868;&#x683C;&#x6587;&#x4EF6;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x5BFC;&#x51FA;excel
     *
     * @memberof AppDataUploadView
     */</span>
    <span class="hljs-keyword">public</span> async importExcel (filename:<span class="hljs-built_in">string</span>,_data:<span class="hljs-built_in">any</span>){
        <span class="hljs-keyword">const</span> tHeader: <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt; = [];
        <span class="hljs-keyword">this</span>.importDataModel.forEach((item: <span class="hljs-built_in">any</span>) =&gt; {
            tHeader.push(item.headername);
        });
        <span class="hljs-comment">//const data = await this.formatExcelData(filterVal, _data);</span>
        <span class="hljs-keyword">const</span> data = _data?_data:[];
        <span class="hljs-keyword">this</span>.$<span class="hljs-keyword">export</span>.exportExcel().then((excel:<span class="hljs-built_in">any</span>)=&gt;{
            excel.export_json_to_excel({
                header: tHeader, <span class="hljs-comment">//&#x8868;&#x5934; &#x5FC5;&#x586B;</span>
                data:data, <span class="hljs-comment">//&#x5177;&#x4F53;&#x6570;&#x636E; &#x5FC5;&#x586B;</span>
                filename: filename, <span class="hljs-comment">//&#x975E;&#x5FC5;&#x586B;</span>
                autoWidth: <span class="hljs-literal">true</span>, <span class="hljs-comment">//&#x975E;&#x5FC5;&#x586B;</span>
                bookType: <span class="hljs-string">&quot;xlsx&quot;</span> <span class="hljs-comment">//&#x975E;&#x5FC5;&#x586B;</span>
            });
        }); 
    };
</code></pre>
<blockquote style="border-color: blue;"><p>&#x5BFC;&#x5165;Excel&#x6587;&#x4EF6;</p></blockquote>

<p>&#x70B9;&#x51FB;&#x754C;&#x9762;&#x4E0A;&#x7684;&#x9009;&#x62E9;&#x6587;&#x4EF6;&#x6309;&#x94AE;&#x5E76;&#x9009;&#x62E9;&#x76F8;&#x5E94;&#x7684;Excel&#x6587;&#x4EF6;&#x540E;&#x89E6;&#x53D1;&#x3002;&#x7528;&#x4E8E;&#x5C06;&#x5BFC;&#x5165;&#x7684;Excel&#x6587;&#x4EF6;&#x4E2D;&#x7684;&#x6570;&#x636E;&#x63D0;&#x53D6;&#x51FA;&#x6765;&#x4FDD;&#x5B58;&#x5230;importDataArray&#x6570;&#x636E;&#x96C6;&#x4E2D;&#x7B49;&#x5F85;&#x540E;&#x7EED;&#x5904;&#x7406;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x5BFC;&#x5165;Excel
     *
     * @memberof AppDataUploadView
     */</span>
    <span class="hljs-keyword">public</span> importFile($event:<span class="hljs-built_in">any</span>) {
        <span class="hljs-keyword">let</span> obj = $event.target || $event.srcElement;
       <span class="hljs-keyword">if</span> (!obj.files) {
           <span class="hljs-keyword">return</span>;
       }
       <span class="hljs-keyword">let</span> f = obj.files[<span class="hljs-number">0</span>];
       <span class="hljs-keyword">let</span> reader = <span class="hljs-keyword">new</span> FileReader();
       reader.onload = (e:<span class="hljs-built_in">any</span>) =&gt; {
           <span class="hljs-keyword">let</span> data = e.target.result;
           <span class="hljs-keyword">this</span>.workBookData = XLSX.read(data, {<span class="hljs-keyword">type</span>: <span class="hljs-string">&apos;binary&apos;</span>});
           <span class="hljs-keyword">let</span> xlsxData = XLSX.utils.sheet_to_json(<span class="hljs-keyword">this</span>.workBookData.Sheets[<span class="hljs-keyword">this</span>.workBookData.SheetNames[<span class="hljs-number">0</span>]]);
           <span class="hljs-keyword">let</span> list1 = <span class="hljs-keyword">this</span>.getFirstRow(<span class="hljs-keyword">this</span>.workBookData);
           xlsxData = <span class="hljs-keyword">this</span>.AddXlsxData(xlsxData, list1);
           <span class="hljs-keyword">this</span>.importDataArray = <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(xlsxData));
           (<span class="hljs-keyword">this</span>.$refs.inputUpLoad as <span class="hljs-built_in">any</span>).value = <span class="hljs-string">&apos;&apos;</span>;
       };
       reader.readAsBinaryString(f);
   }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x4E0A;&#x4F20;&#x670D;&#x52A1;&#x5668;</p></blockquote>

<p>&#x70B9;&#x51FB;&#x4E0A;&#x4F20;&#x670D;&#x52A1;&#x5668;&#x6309;&#x94AE;&#x89E6;&#x53D1;&#x3002;&#x8BE5;&#x65B9;&#x6CD5;&#x5148;&#x5BF9;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x8F6C;&#x6362;&#xFF0C;&#x5982;&#x679C;&#x5BFC;&#x5165;&#x7684;&#x5C5E;&#x6027;&#x9879;&#x914D;&#x6709;&#x4EE3;&#x7801;&#x8868;&#xFF0C;&#x5219;&#x6839;&#x636E;&#x4EE3;&#x7801;&#x8868;&#x5C06;&#x76F8;&#x5E94;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x8F6C;&#x6362;&#x3002;&#x4E0A;&#x4F20;&#x65F6;&#xFF0C;&#x4F1A;&#x5C06;&#x6570;&#x636E;&#x96C6;&#x6309;&#x7167;&#x73AF;&#x5883;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x7684;sliceUploadCnt&#x914D;&#x7F6E;&#x5373;&#x5355;&#x6B21;&#x4E0A;&#x4F20;&#x6570;&#x91CF;&#x8FDB;&#x884C;&#x5207;&#x7247;&#xFF0C;&#x907F;&#x514D;&#x6570;&#x636E;&#x91CF;&#x5927;&#x4EA7;&#x751F;&#x4E0A;&#x4F20;&#x9519;&#x8BEF;&#x3002;&#x8BE6;&#x7EC6;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-typescript">    <span class="hljs-comment">/**
     * &#x4E0A;&#x4F20;&#x670D;&#x52A1;&#x5668;
     *
     * @memberof AppDataUploadView
     */</span>
    <span class="hljs-keyword">public</span> uploadServer(){
        <span class="hljs-keyword">if</span>(<span class="hljs-keyword">this</span>.importDataArray.length == <span class="hljs-number">0</span>){
            <span class="hljs-keyword">return</span>;
        }
        <span class="hljs-keyword">let</span> tempDataArray:<span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt; = [];
        <span class="hljs-keyword">this</span>.transformData(<span class="hljs-keyword">this</span>.importDataArray,tempDataArray);
        <span class="hljs-keyword">this</span>.hasImported = <span class="hljs-literal">true</span>;
        <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">true</span>;
        <span class="hljs-keyword">this</span>.uploadProgress = <span class="hljs-number">0</span>;
        <span class="hljs-keyword">this</span>.importDataArray = [];
        <span class="hljs-keyword">this</span>.sliceUploadService(tempDataArray, <span class="hljs-number">0</span>);
    }

    <span class="hljs-comment">/**
     * &#x6570;&#x636E;&#x5207;&#x7247;&#x4E0A;&#x4F20;
     *
     * @memberof AppDataUploadView
     */</span>
    <span class="hljs-keyword">public</span> sliceUploadService(dataArray: <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt;, cnt: <span class="hljs-built_in">number</span>) {
        <span class="hljs-keyword">if</span>(cnt &gt; dataArray.length) {
            <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">false</span>;
            <span class="hljs-keyword">this</span>.uploadProgress = <span class="hljs-number">100</span>;
            <span class="hljs-keyword">return</span>;
        }
        <span class="hljs-keyword">let</span> sliceArray: <span class="hljs-built_in">Array</span>&lt;<span class="hljs-built_in">any</span>&gt; = [];
        <span class="hljs-keyword">if</span>(dataArray) {
            sliceArray = dataArray.slice(cnt, cnt+<span class="hljs-keyword">this</span>.sliceUploadCnt);
        }
        <span class="hljs-keyword">try</span>{
            <span class="hljs-keyword">this</span>.entityService.getService(<span class="hljs-keyword">this</span>.viewparams.serviceName).then((service:<span class="hljs-built_in">any</span>) =&gt;{
            service.ImportData(<span class="hljs-keyword">this</span>.viewdata,{name:<span class="hljs-keyword">this</span>.importId,importData:sliceArray}).then((res:<span class="hljs-built_in">any</span>) =&gt;{
                <span class="hljs-keyword">const</span> result:<span class="hljs-built_in">any</span> = res.data;
                <span class="hljs-keyword">if</span>(result &amp;&amp; result.rst !== <span class="hljs-number">0</span>){
                    <span class="hljs-keyword">this</span>.promptInfo = (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;components.appDataUploadView.importfailed&apos;</span>) as <span class="hljs-built_in">string</span>);
                    <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">false</span>;
                    <span class="hljs-keyword">return</span>;
                }
                <span class="hljs-keyword">this</span>.importSuccessData = result.data;
                <span class="hljs-keyword">this</span>.promptInfo = (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;components.appDataUploadView.completed&apos;</span>) as <span class="hljs-built_in">string</span>);
                <span class="hljs-keyword">this</span>.uploadProgress = <span class="hljs-built_in">Number</span>((cnt / dataArray.length * <span class="hljs-number">100</span>).toFixed(<span class="hljs-number">2</span>));
                <span class="hljs-keyword">this</span>.sliceUploadService(dataArray, cnt + <span class="hljs-keyword">this</span>.sliceUploadCnt);
            }).catch((error:<span class="hljs-built_in">any</span>) =&gt;{
                <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">false</span>;
                <span class="hljs-keyword">this</span>.promptInfo = (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;components.appDataUploadView.importfailed&apos;</span>) as <span class="hljs-built_in">string</span>);
                <span class="hljs-built_in">console</span>.error(error);
            })
            }).catch((error:<span class="hljs-built_in">any</span>) =&gt;{
                <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">false</span>;
                <span class="hljs-keyword">this</span>.promptInfo = (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;components.appDataUploadView.importfailed&apos;</span>) as <span class="hljs-built_in">string</span>);
                <span class="hljs-built_in">console</span>.error(error);
            })
        }<span class="hljs-keyword">catch</span>(error){
            <span class="hljs-keyword">this</span>.isUploading = <span class="hljs-literal">false</span>;
            <span class="hljs-keyword">this</span>.promptInfo = (<span class="hljs-keyword">this</span>.$t(<span class="hljs-string">&apos;components.appDataUploadView.importfailed&apos;</span>) as <span class="hljs-built_in">string</span>);
            <span class="hljs-built_in">console</span>.error(error);
        };
    }
</code></pre>
<blockquote style="border-color: blue;"><p>&#x4E0A;&#x4F20;&#x5B8C;&#x6210;</p></blockquote>

<p>&#x5F53;&#x4E0A;&#x4F20;&#x670D;&#x52A1;&#x5668;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x70B9;&#x51FB;&#x786E;&#x8BA4;&#x6309;&#x94AE;&#x89E6;&#x53D1;&#x3002;&#x643A;&#x5E26;&#x5BFC;&#x5165;&#x6210;&#x529F;&#x7684;&#x6570;&#x636E;&#x629B;&#x51FA;close&#x4E8B;&#x4EF6;&#xFF0C;&#x6A21;&#x6001;&#x7EC4;&#x4EF6;&#x6355;&#x83B7;&#x4E4B;&#x540E;&#x901A;&#x8FC7;&#x6570;&#x636E;&#x4F20;&#x9012;&#x5BF9;&#x8C61;&#x5C06;&#x6570;&#x636E;&#x4F20;&#x9012;&#x7ED9;&#x8868;&#x683C;&#xFF0C;</p>
<pre><code class="lang-typescript">        <span class="hljs-keyword">if</span> (<span class="hljs-keyword">this</span>.subject) {
            <span class="hljs-keyword">if</span> (<span class="hljs-keyword">this</span>.tempResult &amp;&amp; <span class="hljs-built_in">Object</span>.is(<span class="hljs-keyword">this</span>.tempResult.ret, <span class="hljs-string">&apos;OK&apos;</span>)) {
                <span class="hljs-keyword">this</span>.subject.next(<span class="hljs-keyword">this</span>.tempResult);
            }
        }
</code></pre>
<p>&#x8868;&#x683C;&#x6B64;&#x65F6;&#x8FDB;&#x884C;&#x5237;&#x65B0;&#x91CD;&#x65B0;&#x52A0;&#x8F7D;&#x5BFC;&#x5165;&#x6210;&#x529F;&#x7684;&#x6570;&#x636E;&#x5E76;&#x8FDB;&#x884C;&#x5C55;&#x793A;&#x3002;</p>
<pre><code class="lang-typescript">        <span class="hljs-keyword">let</span> container: Subject&lt;<span class="hljs-built_in">any</span>&gt; = <span class="hljs-keyword">this</span>.$appmodal.openModal(view, <span class="hljs-built_in">JSON</span>.parse(<span class="hljs-built_in">JSON</span>.stringify(<span class="hljs-keyword">this</span>.context)), importDataModel);
        container.subscribe((result: <span class="hljs-built_in">any</span>) =&gt; {
          <span class="hljs-keyword">if</span>(<span class="hljs-built_in">Object</span>.is(result.ret,<span class="hljs-string">&apos;OK&apos;</span>)){
            <span class="hljs-keyword">this</span>.refresh(result.datas);
          }
      });
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="LOGINVIEW.html" class="navigation navigation-prev " aria-label="Previous page: 应用登录视图">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="REDIRECTVIEW.html" class="navigation navigation-next " aria-label="Next page: 实体数据重定向视图">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"应用数据导入视图","level":"2.2.32","depth":2,"next":{"title":"实体数据重定向视图","level":"2.2.33","depth":2,"path":"VIEWS/REDIRECTVIEW.md","ref":"./VIEWS/REDIRECTVIEW.md","articles":[]},"previous":{"title":"应用登录视图","level":"2.2.31","depth":2,"path":"VIEWS/LOGINVIEW.md","ref":"./VIEWS/LOGINVIEW.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"VIEWS/DATAUPLOADVIEW.md","mtime":"2020-10-27T06:11:11.685Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-11-02T06:38:45.289Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

